<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @category    design
 * @package     base_default
 * @copyright   Copyright (c) 2013 Magento Inc. (http://www.magentocommerce.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
/**
 * @var Mage_Page_Block_Html_Header $this
 */
?>
<?php
//	 $obj = Mage::helper('saleorderservice');
//	 $obj->pushOrderInfo('200002067');
//	 die();
//?>
<div class="header-container">
	<div class="header-container-top">
		<div class="header container_24">
			<div class="header_top">
				<div class="grid_8">
					<p class="welcome-msg"><?php echo $this->getChildHtml('welcome') ?> <?php echo $this->getAdditionalHtml() ?></p>
					<?php echo $this->getChildHtml('header_login') ?>
				    <div class="hotline">
				    	<span></span>
				    </div>
				</div>
				<div class="grid_16">
					<?php echo $this->getChildHtml('store_switcher_header') ?>
					<?php echo $this->getChildHtml('currency') ?>
					<?php echo $this->getChildHtml('store_language') ?>
					<?php
						$_cartQty = Mage::getSingleton('checkout/cart')->getSummaryQty()?Mage::getSingleton('checkout/cart')->getSummaryQty():'0';
						$_subtotals = Mage::getSingleton('checkout/cart')->getQuote()->getTotals();
						$subtotal = $_subtotals["subtotal"]->getValue();
					?>
					<div class="shipping_cart">
						<a href="<?php echo $this->getUrl('checkout/cart') ?>" id="top_cart" class="top_cart"><span class="title-cart">
						<img src="<?php echo $this->getSkinUrl('images/custom/header_shopping_cart.png');?>" width="16px" />
						<?php echo $this->__("Shopping cart") ?> <?php echo $this->__('<span class="cartqty">%s</span>',$_cartQty) ?></a></span>
							<?php echo $this->getChildHtml('cart_sidebar');?>
					</div>
					<?php echo $this->getChildHtml('topLinks') ?>
					<?php echo $this->getChildHtml('galawishcart_topmenu') ?>
					
				</div>
			</div>
			<div class="clear"></div>
		</div>
	</div>
	<div class="header-container-bottom">
		<div class="header container_24">
			<div class="header_content">
				<div class="grid_6">
					<?php if ($this->getIsHomePage()):?>
						<h1 class="logo"><strong><?php echo $this->getLogoAlt() ?></strong><a href="<?php echo $this->getUrl('') ?>" title="<?php echo $this->getLogoAlt() ?>" class="logo"><img src="<?php echo $this->getLogoSrc() ?>" alt="<?php echo $this->getLogoAlt() ?>" /></a></h1>
					<?php else:?>
						<a href="<?php echo $this->getUrl('') ?>" title="<?php echo $this->getLogoAlt() ?>" class="logo"><strong><?php echo $this->getLogoAlt() ?></strong><img src="<?php echo $this->getLogoSrc() ?>" alt="<?php echo $this->getLogoAlt() ?>" /></a>
					<?php endif?>
				</div>
				<div class="grid_13"><?php echo $this->getChildHtml('topSearch') ?></div>
				<div class="header_bottom_right">
					<?php echo $this->getChildHtml('galawishcart_hotline') ?>
				</div>
			</div>
			<div class="clear"></div>

			<div class="header_bottom grid_24 scroll_menu">
				<div class="header_bottom_left">
					<?php if(Mage::helper("wishcartsettings/mainmenu")->gettype() != 0) : ?>
						<?php echo Mage::helper("wishcartsettings/mainmenu")->getmenu(); ?>
					<?php else : ?>
						<?php echo $this->getChildHtml('topMenu') ?>
					<?php endif ?>

					<?php if($this->getChildHtml('galawishcart_center_megamenu') != '') : ?>
						<?php echo $this->getChildHtml('galawishcart_center_megamenu'); ?>
					<?php endif ?>
				</div>
			</div>
			<div class="clear"></div>

			<?php echo $this->getChildHtml('topContainer'); ?>

		</div>
	</div>
</div>
